<?php
$data[title].='Datensicherung';
$data[head].=''; 
$data[body].='<h2>Datensicherung</h2>
<form name="form1" method="post" action="'.$dir.'index.php?screen=admin_sicherung_download">
  <table border="0" cellspacing="2" cellpadding="00">
    <tr>
      <td width="50" align="center"><input name="1" type="checkbox" id="1" value="1"></td>
      <td width="150" height="25"><strong>1. Planeten</strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td width="50" align="center"><input name="2" type="checkbox" id="2" value="1"></td>
      <td width="150" height="25"><strong>2. Flotte</strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td width="50" align="center"><input name="3" type="checkbox" id="3" value="1"></td>
      <td width="150" height="25"><strong>3. Forschung</strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="center"><input name="4" type="checkbox" id="4" value="1"></td>
      <td height="25"><strong>4. Spieler</strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td width="50" align="center"><input name="5" type="checkbox" id="5" value="1"></td>
      <td width="150" height="25"><strong>5. Allianzen</strong></td>
      <td>&nbsp;</td>
    </tr>

    <tr>
      <td width="50" align="center"><input name="6" type="checkbox" id="6" value="1"></td>
      <td width="150" height="25"><strong>6. Statistiken</strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td width="50" align="center"><input name="7" type="checkbox" id="7" value="1"></td>
      <td width="150" height="25"><strong>7. GalaxieTool <br>
      </strong></td>
      <td><span style="font-size:80%;">ben&ouml;tigt viel Speicherplatz </span></td>
    </tr>
    <tr>
      <td width="50" align="center"><input name="8" type="checkbox" id="8" value="1"></td>
      <td width="150" height="25"><strong>8. Einstellungen</strong></td>
      <td>&nbsp;</td>
    </tr>
  </table>
  <p>
    <input type="submit" name="Submit" value="Datensicherung beginnen">
  </p>
  <p>Sicherungslog:</p>
  <p>';
  $daten=file('include/admin/sicherungen.txt');
  
  foreach($daten as $zeile){
  		$zeile = preg_replace("/von\//", " von <strong>", $zeile); 
  		$zeile = preg_replace("/\/Bereiche\:/", "</strong> - Bereiche: ", $zeile);
  		$zeile = preg_replace("/\/\-/", "", $zeile);
  		$data[body].=$zeile.'<br >';
  };
$data[body].='</p>
</form>
<p></p>';
?>